<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>    
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<link rel="stylesheet" href="/filmtest/bootstrap/css/bootstrap.min.css"/>
<script src="/filmtest/bootstrap/js/jquery-3.1.1.min.js"></script>
<script src="/filmtest/bootstrap/js/bootstrap.min.js"></script>
 
</head>
<body>
  
  <div class="container"> 
	<div class="row clearfix"> 
	   <div class="col-md-12 column">
		    <ul class="breadcrumb">
				<li>
					 <a href="#">首页</a>
				</li>
				<li>
					 <a href="#">电影</a>
				</li>
				<li class="active">
					发布电影
				</li>
			</ul>
		</div>
	</div>
	<div class="row clearfix">
		<div class="col-md-12 column" align="center"> 
		    <form:form action="/film/add" modelAttribute="film" class="col-md-4 col-md-offset-4" enctype="multipart/form-data">
		         <div class="form-group">
		      		<label class="control-label pull-left error">    </label>
		       		<button type="submit" class="btn btn-block btn-primary">发布电影</button>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影名:</label>
		       		<input class="form-control" name="filmName" type="text" 
		       		 placeholder="请输入数字,字母,汉字若干"  pattern="[A-z0-9\u4e00-\u9fa5]+" required autofocus
		       		 value="大话西游3"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 语言:</label>
		       		<input class="form-control" name="filmLanguage" type="text"
		       		 placeholder="请输入语言类型" pattern="[，\u4e00-\u9fa5]{1,10}" required
		       		 value="中文，英文"/>
		       </div>
		        <div class="form-group">
		       		<label class="control-label pull-left"> 电影类型:</label>
		       		<input class="form-control" name="ftId" type="text"
		       		value="1"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影价格:</label>
		       		<input class="form-control" name="filmPrice" type="text"
		       		value="100"/>
		       </div> 
		       <div class="form-group">
		       		<label class="control-label pull-left"> 会员打折数:</label>
		       		<input class="form-control" name="filmDiscount" type="text"
		       		value="1"/>
		       </div>  
		       <div class="form-group">
		       		<label class="control-label pull-left"> 导演:</label>
		       		<input class="form-control" name="filmDirector" type="text"
		       		value="刘镇伟"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 主演:</label>
		       		<input class="form-control" name="filmAcotr" type="text"
		       		value="唐嫣，韩庚，莫文蔚"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影编剧:</label>
		       		<input class="form-control" name="filmWriter" type="text"
		       		value="刘镇伟"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影封面:</label><i style="color:red">${pic}</i>
		       		<input class="form-control" name="cover" type="file" required="required"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 大图片:</label>
		       		<input class="form-control" name="picture" type="file" required="required"/>
		       </div>
               <div class="form-group">
		       		<label class="control-label pull-left"> 上映时间:</label>
		       		<input class="form-control" name="filmShowdate" type="date" required
		       		value="2016-10-30"/>
		       </div>
<!-- 		       <div class="form-group">
		       		<label class="control-label pull-left"> 开始时间:</label>
		       		<input class="form-control"  type="date" name="filmStartdate" required
		       		value="2016-10-30"/>	     		       		      
		       </div>  -->
		       <div class="form-group">
		       		<label class="control-label pull-left"> 余票:</label>
		       		<input class="form-control" name="ticket" type="text"
		       		value="123"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 总票:</label>
		       		<input class="form-control" name="tickettotal" value="150" type="text"
		       		  readonly="readonly"/>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 是否热映:</label>
		       		 <select name="hot" class="form-control">
					    <option value="1">
						        热映
					    </option>
					    <option value="0">
						        冷门
					    </option>
				     </select>
		       </div>
		       <div class="form-group">
		       		<label class="control-label pull-left"> 电影简介:</label>
		       		<textarea rows="8" cols="30" class="form-control" name="filmIntroduction">在《大话西游之大圣娶亲》中死在牛魔王叉下的紫霞仙子（唐嫣 饰），将会通过月光宝盒预先看到这一下场，为了避免惨剧发生，她选择回到从前不让至尊宝（韩庚 饰）爱上自己。而至尊宝又再次重逢一直在等待他的白晶晶（莫文蔚 饰）。前世今生的种种爱恨纠葛再次在九道轮回里最后一次上演。</textarea>
		       </div>
		       <div>
		            <label class="control-label pull-left"> 电影状态:</label>
		       		<input class="form-control" name="filmState" type="text" value="1"/>
		       </div>
		    </form:form>
		</div>
	</div>
  </div>
</body>
</html>